package com.example.springbasic.config;

import com.example.springbasic.condition.ACondition;
import com.example.springbasic.service.AService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ConditionConfig {
	
	@Bean
	@Conditional(ACondition.class)
	public AService get() {
		return new AService();
	}
}